This isn't done automatically for us, so we need to synthesize it in
our hide helper.
With this commit, we properly re-focus the new main/key window after
we have closed a transient-for window.
-(void)hide
{
+ BOOL wasKey = [self isKeyWindow];
+ BOOL wasMain = [self isMainWindow];
+
inShowOrHide = YES;
[self orderOut:nil];
inShowOrHide = NO;
initialPositionKnown = NO;
+
+ if (wasMain)
+ [self windowDidResignMain:nil];
+
+ if (wasKey)
+ [self windowDidResignKey:nil];
}
-(BOOL)trackManualMove